package org.senRPC.example.benchmark;

import org.senRPC.base.registry.DefaultRegistry;
import org.senRPC.base.registry.RegistryServerConfig;
import org.senRPC.common.rpc.ServiceReviewState;
import org.senRPC.remoting.config.NettyServerConfig;

/**
 *
 * @author senrian
 * @description 性能测试的注册中心端
 * @time
 * @modifytime
 */
public class BenchmarkRegistryTest {


	public static void main(String[] args) {

		NettyServerConfig config = new NettyServerConfig();
		RegistryServerConfig registryServerConfig = new RegistryServerConfig();
		registryServerConfig.setDefaultReviewState(ServiceReviewState.PASS_REVIEW);
		//注册中心的端口号
		config.setListenPort(18010);
		new DefaultRegistry(config,registryServerConfig).start();

	}



}
